package com.devilvan.betrice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Evad.Wu
 * @Description HousePrice启动类
 * @date 2022-07-06
 */
@SpringBootApplication(scanBasePackages = "com.devilvan.betrice")
@MapperScan(basePackages = {
        "com.devilvan.betrice.proxy",
        "com.devilvan.betrice.*.mapper",
})
@EnableJpaRepositories(basePackages = {
        "com.devilvan.betrice.*.repository",
})
@EnableTransactionManagement
@EnableJpaAuditing
@EnableAsync
@EnableAspectJAutoProxy
@EnableRetry
public class DataAcquisitionApplication {
    public static void main(String[] args) {
        SpringApplication.run(DataAcquisitionApplication.class, args);
    }
}
